package com.ququ.syb.business.withdraw.fegin;

import com.ququ.common.result.ResultJson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "publicservice")
public interface PublicServiceFegin {

    @RequestMapping(value = "/getcardinfo")
    ResultJson getBankCardNoInfo(@RequestParam(value = "bankcardno") String bankcardno);

    @RequestMapping(value = "/verifybankcard4")
    ResultJson verifyBankCard4(@RequestParam(value = "name") String name,
                               @RequestParam(value = "bankcardno") String bankcardno,
                               @RequestParam(value = "idcardno") String idcardno,
                               @RequestParam(value = "mobile") String mobile);

    @RequestMapping(value = "/verifybankcard3")
    ResultJson verifyBankCard3(@RequestParam(value = "name") String name,
                               @RequestParam(value = "bankcardno") String bankcardno,
                               @RequestParam(value = "idcardno") String idcardno);

    @RequestMapping(value = "/isworkingday")
    ResultJson isWorkingDay(@RequestParam(value = "day") String day);

    @RequestMapping(value = "/nextworkingday")
    ResultJson getNextWorkingDay(@RequestParam(value = "day") String day);

    @RequestMapping(value = "/lastworkingday")
    ResultJson getLastWorkingDay(@RequestParam(value = "day") String day);

}
